<?php

namespace Modules\DataCheck\Exceptions;

use Catch\Enums\Code;
use Catch\Exceptions\CatchException;

/**
 * ParamsException
 */
class ParamsException extends CatchException
{
    protected $code = Code::VALIDATE_FAILED;

    public function __construct(string $message, Code|int $code = 0)
    {
        parent::__construct($message, $code ?: $this->code);
    }
}
